package com.li.designpattern.interpreter;

public abstract class Expression {
	public void interpret(PlayContext context){
		String text=context.getPalyText();
		String key=text.substring(0,1);
		String value=text.substring(1, 2);
		context.setPalyText(text.substring(2,text.length()));
		
		execute(key, value);
	}
	
	public abstract void execute(String key,String value);
}
